//
//  FirstPhotoCollectionViewCell.m
//  旅游咨询
//
//  Created by 高建 on 15/4/16.
//  Copyright (c) 2015年 xubin. All rights reserved.
//

#import "FirstPhotoCollectionViewCell.h"

@implementation FirstPhotoCollectionViewCell
-(void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    
    
    self.PhotoImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height)];
    self.PhotoImageView.backgroundColor = [UIColor grayColor];
    [self.contentView addSubview:self.PhotoImageView];
    [_PhotoImageView release];
    
   
}

-(void)setFirstPhoto:(photoModel *)firstPhoto
{
    if (_firstPhoto != firstPhoto) {
        [_firstPhoto release];
        _firstPhoto = [firstPhoto retain];
    }
    
    [self.PhotoImageView sd_setImageWithURL:[NSURL URLWithString:self.firstPhoto.photo_s]];
    
    
    
}



@end
